import BasicLayout from '@/layouts/basic-layout';
const meta = {
    auth: true,
};
const pre = '/setting/pro/';
export default {
    path: '/setting',
    name: 'setting',
    // redirect: {
    //   // name: "/setting/pro/business/robot",
    //   name: address.length ? address[0] : "",
    // },
    meta,
    component: BasicLayout,
    children: [
        // {
        //   path: "redirect",
        //   name: `${pre}redirect`,
        //   meta: {
        //     ...meta,
        //     title: "",
        //   },
        //   component: () => import("@/pages/setting/redirect"),
        // },
        {
            path: 'account',
            name: `/setting/pro/account`,
            meta: {
                ...meta,
                title: '个人设置'
            },
            component: () => {
 return import ('@/pages/setting/account'); 
}
        },
        {
            path: 'pro/business/label',
            name: `/setting/pro/business/label`,
            meta: {
                ...meta,
                title: '标签管理'
            },
            component: () => {
 return import ('@/pages/setting/business/label'); 
}
        },
        {
            path: 'pro/business/outPatient',
            name: `/setting/pro/business/outPatient`,
            meta: {
                ...meta,
                title: '诊室'
            },
            component: () => {
 return import ('@/pages/setting/business/outPatient'); 
}
        },
        {
            path: 'pro/business/channel',
            name: `/setting/pro/business/channel`,
            meta: {
                ...meta,
                title: '市场来源渠道'
            },
            component: () => {
 return import ('@/pages/setting/business/channel'); 
}
        },
        {
            path: 'pro/business/wrjt',
            name: `/setting/pro/business/wrjt`,
            meta: {
                ...meta,
                title: '提升计划设置'
            },
            component: () => {
 return import ('@/pages/setting/business/wrjt'); 
}
        },
        {
            path: 'pro/business/robot',
            name: `/setting/pro/business/robot`,
            meta: {
                ...meta,
                title: '客服手机'
            },
            component: () => {
 return import ('@/pages/setting/business/robot'); 
}
        },
        {
            path: 'pro/business/eSet',
            name: `/setting/pro/business/eSet`,
            meta: {
                ...meta,
                title: 'E聊配置'
            },
            component: () => {
 return import ('@/pages/setting/business/eSet'); 
}
        },
        {
            path: 'pro/business/speechconfig',
            name: `/setting/pro/business/speechconfig`,
            meta: {
                ...meta,
                title: '词性配置'
            },
            component: () => {
 return import ('@/pages/setting/business/speechconfig'); 
}
        },
        {
            path: 'pro/business/equipment',
            name: `/setting/business/pro/equipment`,
            meta: {
                ...meta,
                title: '设备管理'
            },
            component: () => {
 return import ('@/pages/setting/business/equipment'); 
}
        },
        {
            path: 'pro/business/extension',
            name: `/setting/pro/business/extension`,
            meta: {
                ...meta,
                title: '推广配置'
            },
            component: () => {
 return import ('@/pages/setting/business/extension'); 
}
        },
        {
            path: 'pro/power/person',
            name: `/setting/pro/power/person`,
            meta: {
                ...meta,
                title: '人员'
            },
            component: () => {
 return import ('@/pages/setting/power/user'); 
}
        },
        {
            path: 'pro/power/role',
            name: `/setting/pro/power/role`,
            meta: {
                ...meta,
                title: '角色'
            },
            component: () => {
 return import ('@/pages/setting/power/role'); 
}
        },

        {
            path: 'pro/power/duty',
            name: `/setting/pro/power/duty`,
            meta: {
                ...meta,
                title: '职能'
            },
            component: () => {
 return import ('@/pages/setting/power/duty'); 
}
        },
        {
            path: 'pro/power/personGroup',
            name: `/setting/pro/power/personGroup`,
            meta: {
                ...meta,
                title: '用户组'
            },
            component: () => {
 return import ('@/pages/setting/power/personGroup'); 
}
        },
        {
            path: 'pro/power/dataPower',
            name: `/setting/pro/power/dataPower`,
            meta: {
                ...meta,
                title: '数据共享'
            },
            component: () => {
 return import ('@/pages/setting/power/dataPower'); 
}
        },
        {
            path: 'pro/modules',
            name: `/setting/pro/modules`,
            meta: {
                ...meta,
                title: '模块管理'
            },
            component: () => {
 return import ('@/pages/setting/modules'); 
}
        },
        {
            path: 'pro/dataManage/dataExport',
            name: `/setting/pro/dataManage/dataExport`,
            meta: {
                ...meta,
                title: '数据导出'
            },
            component: () => {
 return import ('@/pages/setting/dataManage/dataExport'); 
}
        },
        {
            path: 'pro/dataManage/exportLog',
            name: `/setting/pro/dataManage/exportLog`,
            meta: {
                ...meta,
                title: '导出日志'
            },
            component: () => {
 return import ('@/pages/setting/dataManage/exportLog'); 
}
        },
        {
            path: 'pro/automation/workflow',
            name: `/setting/pro/automation/workflow`,
            meta: {
                ...meta,
                title: '工作流'
            },
            component: () => {
 return import ('@/pages/setting/automation/workflow'); 
}
        },
        {
            path: 'pro/automation/timedTasks',
            name: `/setting/pro/automation/timedTasks`,
            meta: {
                ...meta,
                title: '定时任务'
            },
            component: () => {
 return import ('@/pages/setting/automation/timedTasks'); 
}
        },
        {
            path: 'pro/automation/autoTag',
            name: `/setting/pro/automation/autoTag`,
            meta: {
                ...meta,
                title: '自动标签'
            },
            component: () => {
 return import ('@/pages/setting/automation/autoTag'); 
}
        },
        {
            path: 'pro/automation/messagePush',
            name: `messagePush`,
            meta: {
                ...meta,
                title: '钉钉推送配置'
            },
            component: () => {
 return import ('@/pages/setting/automation/messagePush'); 
}
        },
        {
            path: 'pro/automation/flowSetup',
            name: `flowSetup`,
            meta: {
                ...meta,
                title: '流程设置'
            },
            component: () => {
 return import ('@/pages/setting/automation/flowSetup'); 
}
        }
    ]
};
